package com.shensi.adminCollect.domain.station.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


public class AddStationDto {

    //合作编码  唯一
    @NotEmpty(message = "合作编码不能为空")
    private String copId;

    //机构类型：1 油企 2 油站
    @NotNull(message = "机构类型不能为空")
    private Integer type;


    //所属油企 type为2必填
    private String pCode;

    @NotNull(message = "机构名不能为空")
    private String name;

    //油站状态
    private Integer status;

    public AddStationDto() {
    }

    public AddStationDto(String copId, Integer type, String pCode, String name, Integer status) {
        this.copId = copId;
        this.type = type;
        this.pCode = pCode;
        this.name = name;
        this.status = status;
    }

    public String getCopId() {
        return copId;
    }

    public void setCopId(String copId) {
        this.copId = copId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "AddStationDto{" +
                "copId='" + copId + '\'' +
                ", type=" + type +
                ", pCode='" + pCode + '\'' +
                ", name='" + name + '\'' +
                ", status=" + status +
                '}';
    }
}
